<?php
require_once "class/mysql_connect.php";
require_once "class/function_curl.php";
require_once "class/function_cutwords.php";


set_time_limit(0);
date_default_timezone_set('PRC');
$time = time();
$now_day = date(Ymd);



//抓取数据
$res = get_url("http://price.pcauto.com.cn/cars/");





$res = str_substr('<div class="letters">', '<script>', $res);



//输出列表页链接
preg_match_all('/<div class="dFix">*>|(.+?)<\/a>/', $res, $page);


print_r($page);
exit();


foreach ($page[1] as $outpage) {
	
	echo $outpage;
	exit();

	$outpage = str_substr("href=\"", "\"", $outpage);
	//echo $outpage."\n";
	echo $outpage."<br/>";

		
}





echo "<font color='red'>列表全部完成！</font><br/>";


